Optimal. Leaf size=235 \[ \frac {3 \left (a^6+5 a^4 b^2+15 a^2 b^4-5 b^6\right ) x}{8 \left (a^2+b^2\right )^4}+\frac {6 a b^5 \log (a \cos (c+d x)+b \sin (c+d x))}{\left (a^2+b^2\right )^4 d}+\frac {3 b \left (a^2-b^2\right ) \left (a^2+5 b^2\right )}{8 \left (a^2+b^2\right )^3 d (a+b \tan (c+d x))}+\frac {\cos ^4(c+d x) (b+a \tan (c+d x))}{4 \left (a^2+b^2\right ) d (a+b \tan (c+d x))}-\frac {\cos ^2(c+d x) \left (b \left (a^2-5 b^2\right )-3 a \left (a^2+3 b^2\right ) \tan (c+d x)\right )}{8 \left (a^2+b^2\right )^2 d (a+b \tan (c+d x))} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.20, antiderivative size = 235, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 7, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {3587, 755, 837,
815, 649, 209, 266} \begin {gather*} \frac {3 b \left (a^2-b^2\right ) \left (a^2+5 b^2\right )}{8 d \left (a^2+b^2\right )^3 (a+b \tan (c+d x))}+\frac {\cos ^4(c+d x) (a \tan (c+d x)+b)}{4 d \left (a^2+b^2\right ) (a+b \tan (c+d x))}-\frac {\cos ^2(c+d x) \left (b \left (a^2-5 b^2\right )-3 a \left (a^2+3 b^2\right ) \tan (c+d x)\right )}{8 d \left (a^2+b^2\right )^2 (a+b \tan (c+d x))}+\frac {6 a b^5 \log (a \cos (c+d x)+b \sin (c+d x))}{d \left (a^2+b^2\right )^4}+\frac {3 x \left (a^6+5 a^4 b^2+15 a^2 b^4-5 b^6\right )}{8 \left (a^2+b^2\right )^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 266
Rule 649
Rule 755
Rule 815
Rule 837
Rule 3587
Rubi steps
\begin {align*} \int \frac {\cos ^4(c+d x)}{(a+b \tan (c+d x))^2} \, dx &=\frac {\text {Subst}\left (\int \frac {1}{(a+x)^2 \left (1+\frac {x^2}{b^2}\right )^3} \, dx,x,b \tan (c+d x)\right )}{b d}\\ &=\frac {\cos ^4(c+d x) (b+a \tan (c+d x))}{4 \left (a^2+b^2\right ) d (a+b \tan (c+d x))}-\frac {b \text {Subst}\left (\int \frac {-5-\frac {3 a^2}{b^2}-\frac {4 a x}{b^2}}{(a+x)^2 \left (1+\frac {x^2}{b^2}\right )^2} \, dx,x,b \tan (c+d x)\right )}{4 \left (a^2+b^2\right ) d}\\ &=\frac {\cos ^4(c+d x) (b+a \tan (c+d x))}{4 \left (a^2+b^2\right ) d (a+b \tan (c+d x))}-\frac {\cos ^2(c+d x) \left (b \left (a^2-5 b^2\right )-3 a \left (a^2+3 b^2\right ) \tan (c+d x)\right )}{8 \left (a^2+b^2\right )^2 d (a+b \tan (c+d x))}+\frac {b^5 \text {Subst}\left (\int \frac {\frac {3 \left (a^4+2 a^2 b^2+5 b^4\right )}{b^6}+\frac {6 a \left (a^2+3 b^2\right ) x}{b^6}}{(a+x)^2 \left (1+\frac {x^2}{b^2}\right )} \, dx,x,b \tan (c+d x)\right )}{8 \left (a^2+b^2\right )^2 d}\\ &=\frac {\cos ^4(c+d x) (b+a \tan (c+d x))}{4 \left (a^2+b^2\right ) d (a+b \tan (c+d x))}-\frac {\cos ^2(c+d x) \left (b \left (a^2-5 b^2\right )-3 a \left (a^2+3 b^2\right ) \tan (c+d x)\right )}{8 \left (a^2+b^2\right )^2 d (a+b \tan (c+d x))}+\frac {b^5 \text {Subst}\left (\int \left (\frac {3 \left (-a^4-4 a^2 b^2+5 b^4\right )}{b^4 \left (a^2+b^2\right ) (a+x)^2}+\frac {48 a}{\left (a^2+b^2\right )^2 (a+x)}-\frac {3 \left (-a^6-5 a^4 b^2-15 a^2 b^4+5 b^6+16 a b^4 x\right )}{b^4 \left (a^2+b^2\right )^2 \left (b^2+x^2\right )}\right ) \, dx,x,b \tan (c+d x)\right )}{8 \left (a^2+b^2\right )^2 d}\\ &=\frac {6 a b^5 \log (a+b \tan (c+d x))}{\left (a^2+b^2\right )^4 d}+\frac {3 b \left (a^2-b^2\right ) \left (a^2+5 b^2\right )}{8 \left (a^2+b^2\right )^3 d (a+b \tan (c+d x))}+\frac {\cos ^4(c+d x) (b+a \tan (c+d x))}{4 \left (a^2+b^2\right ) d (a+b \tan (c+d x))}-\frac {\cos ^2(c+d x) \left (b \left (a^2-5 b^2\right )-3 a \left (a^2+3 b^2\right ) \tan (c+d x)\right )}{8 \left (a^2+b^2\right )^2 d (a+b \tan (c+d x))}-\frac {(3 b) \text {Subst}\left (\int \frac {-a^6-5 a^4 b^2-15 a^2 b^4+5 b^6+16 a b^4 x}{b^2+x^2} \, dx,x,b \tan (c+d x)\right )}{8 \left (a^2+b^2\right )^4 d}\\ &=\frac {6 a b^5 \log (a+b \tan (c+d x))}{\left (a^2+b^2\right )^4 d}+\frac {3 b \left (a^2-b^2\right ) \left (a^2+5 b^2\right )}{8 \left (a^2+b^2\right )^3 d (a+b \tan (c+d x))}+\frac {\cos ^4(c+d x) (b+a \tan (c+d x))}{4 \left (a^2+b^2\right ) d (a+b \tan (c+d x))}-\frac {\cos ^2(c+d x) \left (b \left (a^2-5 b^2\right )-3 a \left (a^2+3 b^2\right ) \tan (c+d x)\right )}{8 \left (a^2+b^2\right )^2 d (a+b \tan (c+d x))}-\frac {\left (6 a b^5\right ) \text {Subst}\left (\int \frac {x}{b^2+x^2} \, dx,x,b \tan (c+d x)\right )}{\left (a^2+b^2\right )^4 d}+\frac {\left (3 b \left (a^6+5 a^4 b^2+15 a^2 b^4-5 b^6\right )\right ) \text {Subst}\left (\int \frac {1}{b^2+x^2} \, dx,x,b \tan (c+d x)\right )}{8 \left (a^2+b^2\right )^4 d}\\ &=\frac {3 \left (a^6+5 a^4 b^2+15 a^2 b^4-5 b^6\right ) x}{8 \left (a^2+b^2\right )^4}+\frac {6 a b^5 \log (\cos (c+d x))}{\left (a^2+b^2\right )^4 d}+\frac {6 a b^5 \log (a+b \tan (c+d x))}{\left (a^2+b^2\right )^4 d}+\frac {3 b \left (a^2-b^2\right ) \left (a^2+5 b^2\right )}{8 \left (a^2+b^2\right )^3 d (a+b \tan (c+d x))}+\frac {\cos ^4(c+d x) (b+a \tan (c+d x))}{4 \left (a^2+b^2\right ) d (a+b \tan (c+d x))}-\frac {\cos ^2(c+d x) \left (b \left (a^2-5 b^2\right )-3 a \left (a^2+3 b^2\right ) \tan (c+d x)\right )}{8 \left (a^2+b^2\right )^2 d (a+b \tan (c+d x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 3.47, size = 416, normalized size = 1.77 \begin {gather*} \frac {4 b \cos ^4(c+d x) (b+a \tan (c+d x))+\frac {2 b \cos ^2(c+d x) \left (-a^2 b+5 b^3+3 a \left (a^2+3 b^2\right ) \tan (c+d x)\right )}{a^2+b^2}-\frac {\sqrt {-b^2} \left (6 a \left (a^2+b^2\right ) \left (a^2+3 b^2\right ) \left (\left (a-\sqrt {-b^2}\right ) \log \left (\sqrt {-b^2}-b \tan (c+d x)\right )+2 \sqrt {-b^2} \log (a+b \tan (c+d x))-\left (a+\sqrt {-b^2}\right ) \log \left (\sqrt {-b^2}+b \tan (c+d x)\right )\right ) (a+b \tan (c+d x))+3 \left (a^4+4 a^2 b^2-5 b^4\right ) \left (2 \sqrt {-b^2} \left (a^2+b^2\right )+\left (-a^2+b^2+2 a \sqrt {-b^2}\right ) \log \left (\sqrt {-b^2}-b \tan (c+d x)\right ) (a+b \tan (c+d x))-4 a \sqrt {-b^2} \log (a+b \tan (c+d x)) (a+b \tan (c+d x))+\left (a^2-b^2+2 a \sqrt {-b^2}\right ) \log \left (\sqrt {-b^2}+b \tan (c+d x)\right ) (a+b \tan (c+d x))\right )\right )}{\left (a^2+b^2\right )^3}}{16 b \left (a^2+b^2\right ) d (a+b \tan (c+d x))} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.40, size = 248, normalized size = 1.06
method | result | size |
derivativedivides | \(\frac {-\frac {b^{5}}{\left (a^{2}+b^{2}\right )^{3} \left (a +b \tan \left (d x +c \right )\right )}+\frac {6 b^{5} a \ln \left (a +b \tan \left (d x +c \right )\right )}{\left (a^{2}+b^{2}\right )^{4}}+\frac {\frac {\left (\frac {3}{8} a^{6}+\frac {15}{8} a^{4} b^{2}+\frac {5}{8} a^{2} b^{4}-\frac {7}{8} b^{6}\right ) \left (\tan ^{3}\left (d x +c \right )\right )+\left (2 a^{3} b^{3}+2 a \,b^{5}\right ) \left (\tan ^{2}\left (d x +c \right )\right )+\left (\frac {17}{8} a^{4} b^{2}+\frac {3}{8} a^{2} b^{4}-\frac {9}{8} b^{6}+\frac {5}{8} a^{6}\right ) \tan \left (d x +c \right )+\frac {a^{5} b}{2}+3 a^{3} b^{3}+\frac {5 a \,b^{5}}{2}}{\left (1+\tan ^{2}\left (d x +c \right )\right )^{2}}-3 a \,b^{5} \ln \left (1+\tan ^{2}\left (d x +c \right )\right )+\frac {3 \left (a^{6}+5 a^{4} b^{2}+15 a^{2} b^{4}-5 b^{6}\right ) \arctan \left (\tan \left (d x +c \right )\right )}{8}}{\left (a^{2}+b^{2}\right )^{4}}}{d}\) | \(248\) |
default | \(\frac {-\frac {b^{5}}{\left (a^{2}+b^{2}\right )^{3} \left (a +b \tan \left (d x +c \right )\right )}+\frac {6 b^{5} a \ln \left (a +b \tan \left (d x +c \right )\right )}{\left (a^{2}+b^{2}\right )^{4}}+\frac {\frac {\left (\frac {3}{8} a^{6}+\frac {15}{8} a^{4} b^{2}+\frac {5}{8} a^{2} b^{4}-\frac {7}{8} b^{6}\right ) \left (\tan ^{3}\left (d x +c \right )\right )+\left (2 a^{3} b^{3}+2 a \,b^{5}\right ) \left (\tan ^{2}\left (d x +c \right )\right )+\left (\frac {17}{8} a^{4} b^{2}+\frac {3}{8} a^{2} b^{4}-\frac {9}{8} b^{6}+\frac {5}{8} a^{6}\right ) \tan \left (d x +c \right )+\frac {a^{5} b}{2}+3 a^{3} b^{3}+\frac {5 a \,b^{5}}{2}}{\left (1+\tan ^{2}\left (d x +c \right )\right )^{2}}-3 a \,b^{5} \ln \left (1+\tan ^{2}\left (d x +c \right )\right )+\frac {3 \left (a^{6}+5 a^{4} b^{2}+15 a^{2} b^{4}-5 b^{6}\right ) \arctan \left (\tan \left (d x +c \right )\right )}{8}}{\left (a^{2}+b^{2}\right )^{4}}}{d}\) | \(248\) |
risch | \(\frac {12 i x a b}{32 i a^{3} b -32 i a \,b^{3}-8 a^{4}+48 a^{2} b^{2}-8 b^{4}}-\frac {3 x \,a^{2}}{32 i a^{3} b -32 i a \,b^{3}-8 a^{4}+48 a^{2} b^{2}-8 b^{4}}+\frac {15 x \,b^{2}}{32 i a^{3} b -32 i a \,b^{3}-8 a^{4}+48 a^{2} b^{2}-8 b^{4}}-\frac {i {\mathrm e}^{4 i \left (d x +c \right )}}{64 \left (-2 i a b +a^{2}-b^{2}\right ) d}-\frac {{\mathrm e}^{2 i \left (d x +c \right )} b}{4 \left (-3 i b \,a^{2}+i b^{3}+a^{3}-3 b^{2} a \right ) d}-\frac {i {\mathrm e}^{2 i \left (d x +c \right )} a}{8 \left (-3 i b \,a^{2}+i b^{3}+a^{3}-3 b^{2} a \right ) d}-\frac {{\mathrm e}^{-2 i \left (d x +c \right )} b}{4 \left (2 i a b +a^{2}-b^{2}\right ) \left (i b +a \right ) d}+\frac {i {\mathrm e}^{-2 i \left (d x +c \right )} a}{8 \left (2 i a b +a^{2}-b^{2}\right ) \left (i b +a \right ) d}+\frac {i {\mathrm e}^{-4 i \left (d x +c \right )}}{64 \left (2 i a b +a^{2}-b^{2}\right ) d}-\frac {12 i a \,b^{5} x}{a^{8}+4 a^{6} b^{2}+6 a^{4} b^{4}+4 a^{2} b^{6}+b^{8}}-\frac {12 i a \,b^{5} c}{d \left (a^{8}+4 a^{6} b^{2}+6 a^{4} b^{4}+4 a^{2} b^{6}+b^{8}\right )}-\frac {2 i b^{6}}{\left (-i a +b \right )^{3} d \left (i a +b \right )^{4} \left (b \,{\mathrm e}^{2 i \left (d x +c \right )}+i a \,{\mathrm e}^{2 i \left (d x +c \right )}-b +i a \right )}+\frac {6 a \,b^{5} \ln \left ({\mathrm e}^{2 i \left (d x +c \right )}-\frac {i b +a}{i b -a}\right )}{d \left (a^{8}+4 a^{6} b^{2}+6 a^{4} b^{4}+4 a^{2} b^{6}+b^{8}\right )}\) | \(562\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 502 vs.
\(2 (228) = 456\).
time = 0.49, size = 502, normalized size = 2.14 \begin {gather*} \frac {\frac {48 \, a b^{5} \log \left (b \tan \left (d x + c\right ) + a\right )}{a^{8} + 4 \, a^{6} b^{2} + 6 \, a^{4} b^{4} + 4 \, a^{2} b^{6} + b^{8}} - \frac {24 \, a b^{5} \log \left (\tan \left (d x + c\right )^{2} + 1\right )}{a^{8} + 4 \, a^{6} b^{2} + 6 \, a^{4} b^{4} + 4 \, a^{2} b^{6} + b^{8}} + \frac {3 \, {\left (a^{6} + 5 \, a^{4} b^{2} + 15 \, a^{2} b^{4} - 5 \, b^{6}\right )} {\left (d x + c\right )}}{a^{8} + 4 \, a^{6} b^{2} + 6 \, a^{4} b^{4} + 4 \, a^{2} b^{6} + b^{8}} + \frac {4 \, a^{4} b + 20 \, a^{2} b^{3} - 8 \, b^{5} + 3 \, {\left (a^{4} b + 4 \, a^{2} b^{3} - 5 \, b^{5}\right )} \tan \left (d x + c\right )^{4} + 3 \, {\left (a^{5} + 4 \, a^{3} b^{2} + 3 \, a b^{4}\right )} \tan \left (d x + c\right )^{3} + {\left (5 \, a^{4} b + 28 \, a^{2} b^{3} - 25 \, b^{5}\right )} \tan \left (d x + c\right )^{2} + {\left (5 \, a^{5} + 16 \, a^{3} b^{2} + 11 \, a b^{4}\right )} \tan \left (d x + c\right )}{a^{7} + 3 \, a^{5} b^{2} + 3 \, a^{3} b^{4} + a b^{6} + {\left (a^{6} b + 3 \, a^{4} b^{3} + 3 \, a^{2} b^{5} + b^{7}\right )} \tan \left (d x + c\right )^{5} + {\left (a^{7} + 3 \, a^{5} b^{2} + 3 \, a^{3} b^{4} + a b^{6}\right )} \tan \left (d x + c\right )^{4} + 2 \, {\left (a^{6} b + 3 \, a^{4} b^{3} + 3 \, a^{2} b^{5} + b^{7}\right )} \tan \left (d x + c\right )^{3} + 2 \, {\left (a^{7} + 3 \, a^{5} b^{2} + 3 \, a^{3} b^{4} + a b^{6}\right )} \tan \left (d x + c\right )^{2} + {\left (a^{6} b + 3 \, a^{4} b^{3} + 3 \, a^{2} b^{5} + b^{7}\right )} \tan \left (d x + c\right )}}{8 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.45, size = 424, normalized size = 1.80 \begin {gather*} \frac {4 \, {\left (a^{6} b + 3 \, a^{4} b^{3} + 3 \, a^{2} b^{5} + b^{7}\right )} \cos \left (d x + c\right )^{5} - 2 \, {\left (a^{6} b - 3 \, a^{4} b^{3} - 9 \, a^{2} b^{5} - 5 \, b^{7}\right )} \cos \left (d x + c\right )^{3} + {\left (3 \, a^{6} b + 8 \, a^{4} b^{3} - 9 \, a^{2} b^{5} - 30 \, b^{7} + 6 \, {\left (a^{7} + 5 \, a^{5} b^{2} + 15 \, a^{3} b^{4} - 5 \, a b^{6}\right )} d x\right )} \cos \left (d x + c\right ) + 48 \, {\left (a^{2} b^{5} \cos \left (d x + c\right ) + a b^{6} \sin \left (d x + c\right )\right )} \log \left (2 \, a b \cos \left (d x + c\right ) \sin \left (d x + c\right ) + {\left (a^{2} - b^{2}\right )} \cos \left (d x + c\right )^{2} + b^{2}\right ) - {\left (3 \, a^{5} b^{2} + 22 \, a^{3} b^{4} + 3 \, a b^{6} - 4 \, {\left (a^{7} + 3 \, a^{5} b^{2} + 3 \, a^{3} b^{4} + a b^{6}\right )} \cos \left (d x + c\right )^{4} - 6 \, {\left (a^{6} b + 5 \, a^{4} b^{3} + 15 \, a^{2} b^{5} - 5 \, b^{7}\right )} d x - 6 \, {\left (a^{7} + 5 \, a^{5} b^{2} + 7 \, a^{3} b^{4} + 3 \, a b^{6}\right )} \cos \left (d x + c\right )^{2}\right )} \sin \left (d x + c\right )}{16 \, {\left ({\left (a^{9} + 4 \, a^{7} b^{2} + 6 \, a^{5} b^{4} + 4 \, a^{3} b^{6} + a b^{8}\right )} d \cos \left (d x + c\right ) + {\left (a^{8} b + 4 \, a^{6} b^{3} + 6 \, a^{4} b^{5} + 4 \, a^{2} b^{7} + b^{9}\right )} d \sin \left (d x + c\right )\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: AttributeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 464 vs.
\(2 (228) = 456\).
time = 0.56, size = 464, normalized size = 1.97 \begin {gather*} \frac {\frac {48 \, a b^{6} \log \left ({\left | b \tan \left (d x + c\right ) + a \right |}\right )}{a^{8} b + 4 \, a^{6} b^{3} + 6 \, a^{4} b^{5} + 4 \, a^{2} b^{7} + b^{9}} - \frac {24 \, a b^{5} \log \left (\tan \left (d x + c\right )^{2} + 1\right )}{a^{8} + 4 \, a^{6} b^{2} + 6 \, a^{4} b^{4} + 4 \, a^{2} b^{6} + b^{8}} + \frac {3 \, {\left (a^{6} + 5 \, a^{4} b^{2} + 15 \, a^{2} b^{4} - 5 \, b^{6}\right )} {\left (d x + c\right )}}{a^{8} + 4 \, a^{6} b^{2} + 6 \, a^{4} b^{4} + 4 \, a^{2} b^{6} + b^{8}} - \frac {8 \, {\left (6 \, a b^{6} \tan \left (d x + c\right ) + 7 \, a^{2} b^{5} + b^{7}\right )}}{{\left (a^{8} + 4 \, a^{6} b^{2} + 6 \, a^{4} b^{4} + 4 \, a^{2} b^{6} + b^{8}\right )} {\left (b \tan \left (d x + c\right ) + a\right )}} + \frac {36 \, a b^{5} \tan \left (d x + c\right )^{4} + 3 \, a^{6} \tan \left (d x + c\right )^{3} + 15 \, a^{4} b^{2} \tan \left (d x + c\right )^{3} + 5 \, a^{2} b^{4} \tan \left (d x + c\right )^{3} - 7 \, b^{6} \tan \left (d x + c\right )^{3} + 16 \, a^{3} b^{3} \tan \left (d x + c\right )^{2} + 88 \, a b^{5} \tan \left (d x + c\right )^{2} + 5 \, a^{6} \tan \left (d x + c\right ) + 17 \, a^{4} b^{2} \tan \left (d x + c\right ) + 3 \, a^{2} b^{4} \tan \left (d x + c\right ) - 9 \, b^{6} \tan \left (d x + c\right ) + 4 \, a^{5} b + 24 \, a^{3} b^{3} + 56 \, a b^{5}}{{\left (a^{8} + 4 \, a^{6} b^{2} + 6 \, a^{4} b^{4} + 4 \, a^{2} b^{6} + b^{8}\right )} {\left (\tan \left (d x + c\right )^{2} + 1\right )}^{2}}}{8 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 4.77, size = 463, normalized size = 1.97 \begin {gather*} \frac {\frac {3\,{\mathrm {tan}\left (c+d\,x\right )}^4\,\left (a^4\,b+4\,a^2\,b^3-5\,b^5\right )}{8\,\left (a^6+3\,a^4\,b^2+3\,a^2\,b^4+b^6\right )}+\frac {a^4\,b+5\,a^2\,b^3-2\,b^5}{2\,\left (a^2+b^2\right )\,\left (a^4+2\,a^2\,b^2+b^4\right )}+\frac {\mathrm {tan}\left (c+d\,x\right )\,\left (5\,a^3+11\,a\,b^2\right )}{8\,\left (a^4+2\,a^2\,b^2+b^4\right )}+\frac {3\,{\mathrm {tan}\left (c+d\,x\right )}^3\,\left (a^3+3\,a\,b^2\right )}{8\,\left (a^4+2\,a^2\,b^2+b^4\right )}+\frac {{\mathrm {tan}\left (c+d\,x\right )}^2\,\left (5\,a^4\,b+28\,a^2\,b^3-25\,b^5\right )}{8\,\left (a^2+b^2\right )\,\left (a^4+2\,a^2\,b^2+b^4\right )}}{d\,\left (b\,{\mathrm {tan}\left (c+d\,x\right )}^5+a\,{\mathrm {tan}\left (c+d\,x\right )}^4+2\,b\,{\mathrm {tan}\left (c+d\,x\right )}^3+2\,a\,{\mathrm {tan}\left (c+d\,x\right )}^2+b\,\mathrm {tan}\left (c+d\,x\right )+a\right )}+\frac {3\,\ln \left (\mathrm {tan}\left (c+d\,x\right )+1{}\mathrm {i}\right )\,\left (-a^2+a\,b\,4{}\mathrm {i}+5\,b^2\right )}{16\,d\,\left (a^4\,1{}\mathrm {i}+4\,a^3\,b-a^2\,b^2\,6{}\mathrm {i}-4\,a\,b^3+b^4\,1{}\mathrm {i}\right )}+\frac {3\,\ln \left (\mathrm {tan}\left (c+d\,x\right )-\mathrm {i}\right )\,\left (a^2+a\,b\,4{}\mathrm {i}-5\,b^2\right )}{16\,d\,\left (a^4\,1{}\mathrm {i}-4\,a^3\,b-a^2\,b^2\,6{}\mathrm {i}+4\,a\,b^3+b^4\,1{}\mathrm {i}\right )}+\frac {6\,a\,b^5\,\ln \left (a+b\,\mathrm {tan}\left (c+d\,x\right )\right )}{d\,{\left (a^2+b^2\right )}^4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________